import request2 from '@/utils/request2'
import { unionApiUrl } from '../../config'
// let unionApiUrl = 'union-producer-server'

export default {
    // 分页查询
    getPageSupportRecord(data, params) {
        return request2({
            url: unionApiUrl + '/supportRecord/getPageSupportRecord', method: 'post', params, data
        })
    },
    // 删除创新工作室
    deleteByPrimaryKey(params) {
        return request2({
            url: unionApiUrl + '/supportRecord/deleteByPrimaryKey', method: 'post', params
        })
    },
    // 添加创新工作室
    insertSelective(data, params) {
        return request2({
            url: unionApiUrl + '/supportRecord/insertSelective', method: 'post', params, data
        })
    },
    // 修改创新工作室
    updateByPrimaryKeySelective(data, params) {
        return request2({
            url: unionApiUrl + '/supportRecord/updateByPrimaryKeySelective', method: 'post', params, data
        })
    },
    // 获取职工教育信息
    getSupportRecordById(data, params) {
        return request2({
            url: unionApiUrl + '/supportRecord/getSupportRecordById', method: 'get', params, data
        })
    }
}
